package tianrun.ziguan.api.calculate.config.dto.response;


public class AssetCalLabelRespDetail {

    /**
     * 计算点计算所需点位
     */
    private String label;

    private String virtualLabel;

    /**
     * 点位来源；self自身，child子设备
     */
    private String source;
    /**
     * 点位类型
     */
    private String mold;

    /**
     * 数据类型；hist历史数据，real实时数据，last最新数据
     */
    private String dataType;

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getVirtualLabel() {
        return virtualLabel;
    }

    public AssetCalLabelRespDetail setVirtualLabel(String virtualLabel) {
        this.virtualLabel = virtualLabel;
        return this;
    }

    public String getMold() {
        return mold;
    }

    public void setMold(String mold) {
        this.mold = mold;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public static AssetCalLabelRespDetail parse(TAssetCalLabelConfigVO resp) {
        AssetCalLabelRespDetail assetCalLabelRespDetail = new AssetCalLabelRespDetail();
        assetCalLabelRespDetail.setLabel(resp.getLabel());
        assetCalLabelRespDetail.setMold(resp.getMold());
        assetCalLabelRespDetail.setDataType(resp.getDataType());
        assetCalLabelRespDetail.setVirtualLabel(resp.getVirtualLabel());
        assetCalLabelRespDetail.setSource(resp.getSource());
        return assetCalLabelRespDetail;
    }
}
